//
//  SearchEngine.h
//  Simple Tagger
//
//  Created by Thomas Bröckers on 01.02.08.
//  Copyright 2008 __MyCompanyName__. All rights reserved.
//

#import <Cocoa/Cocoa.h>
#import <ResultEntry.h>


@interface SearchEngine : NSObject {
}

- (NSMutableArray *) buildSearchResultFromKeywords:(NSString *) keywords
                                        withEngine:(NSString *) searchEngine;
- (int) getTotalPagesFromItemSearchResult:(NSXMLDocument *) xmlResultDoc;
- (void) addResultEntriesFromResult:(NSXMLDocument *) xmlResultDoc
                      ToResultList:(NSMutableArray *) resultList;
- (void) addDetailsForResultEntryFromItem:(NSXMLElement *) xmlElement
                       ToResultList:(NSMutableArray *) resultList;
- (NSString *)utcTimestamp;
- (NSMutableString *) queryStringForParameterDictionary:(NSDictionary *) params;
- (NSString *) makeSignature:(NSString *) salt data:(NSData*) data;
- (NSString *) signatureInputForQueryString:(NSString *) queryString AndHost:(NSString *) host;
- (void) sendStatusChange:(NSString *) newStatus;
- (NSString *) replaceSpecialCharacters:(NSMutableString *) aString;


@end
